<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<script type="text/javascript" src="${jspath}/js/ajaxfileupload.js"></script>
<script type="text/javascript">
function ajaxFileUpload(studentid,classid,m){
	/* $("#"+studentid+classid+"loading")
	.ajaxStart(function(){
		$(this).show();
	})
	.ajaxComplete(function(){
		$(this).hide();
	}); */
	//alert(m.name);
	$(m).attr('id','file');
	$.ajaxFileUpload({
			url:'/drm/att/up?token=12qwaszxcvdfer34',
			secureuri:false,
			fileElementId:'file',
			dataType: 'json',				
			success: function (data, status){         
				$(m).removeAttr('id');
				if(typeof(data.code) != 1){
                     //alert(data.id);
                     //return;
                     $.ajax({
                    	 url : '/teacher/career/save_career_plan',
                    	 data : {classid:classid,studentid:studentid,planName:data.filename,planid:data.id},
                    	 dataType : 'json',
                    	 success : function(d,status){
                    		 //alert('success');
                    		 getTeacherDiv('career');
                    	 }
                     });
                }
			},
			error: function (data, status, e){
				$(m).removeAttr('id');
				alert(e);
			}
		}
	)
	
	return false;

}
</script>

<!--等待规划的-->
	<div class="not_right" >
		<div class="not_righttitle">
			<div class="not_righttitle01"> <a href="#">职业规划</a> </div>
			<div class="not_righttb">
				
				<div class="exam_title"> 
					<a href="javascript:getTeacherDiv('career');">
						<div class="exam_title01"> 待规划学员 </div>
					</a>
					<a href="javascript:getUrlDiv('/teacher/career/planed');">
						<div class="exam_title02"> 已规划学员 </div>
					</a>
				</div>
				
			</div>
			 
			<div class="teac_member" style="margin-top:30px;">
				<c:forEach items="${unplanList}" var="item">
					<div class="teac_memberlistm">
						<div class="notic_rightmid0200">
							<div class="notic_rightmid02l">
							<c:if test="${not empty item.user_himg}">
								<img src="${drmFilePath}cdrmimg/${item.user_himg}?w=70&h=70" style="height:50px;width:50px;"/></c:if>
							</div>
							${item.user_rnm} </div>
						<div class="teac_memberlistl" style="padding-top:10px;"> <a href="#" style="display:block;">
							<div class="teac_studdy">
								<div class="opac" style="width:60px;overflow:hidden;">
									<!--<form action="" method="POST" enctype="multipart/form-data">-->
										<!-- <input type="file" name="pic" accept="image/*" /> '${item.user_id}','${item.classes_id}'-->
										<input type="file" name="upload" onchange="return ajaxFileUpload('${item.user_id}','${item.classes_id}',this);"/>
									<!--</form>-->
								</div>
								上传规划</div>
							</a></div>
					</div>
				</c:forEach>				
			</div>
		</div>
	</div>
	<!-- <input type="file" id="file" name="upload" onchange="return ajaxFileUpload();"/> -->
	<!--end我的测评列表--> 
